+((w) => {
   let songsList = document.querySelector("#musicPlaylistSongsList");
   let albumSongsInfo = []
   w.utils.musicPlayListLoader = (albumsList) => {
      albumsList.forEach((element) => {
         element.addEventListener("click", (e) => {
            let albumId = element.getAttribute("data-album-id");
            utils.navigateTo("#musicPlaylist");
            element.getAttribute("");
            getAlbumInfo(albumId);
         })
      })

      let getAlbumInfo = (albumId) => {
         // 拉取歌单数据，后期发送请求 albumId
         let result = [
            {
               songId: 5281551,
               songName: "国际歌",
               songAuthor: "中央乐团合唱队",
               songPicUrl: "http://p3.music.126.net/_lAvi41IfmPhw73Mxq2b8g==/19061133579368888.jpg",
            }, {
               songId: 1906288974,
               songName: "和小葛去石家庄",
               songAuthor: '华北浪革',
               songPicUrl: 'https://p3.music.126.net/T_xG4M2Daq8DLfsao5mttA==/109951166788824624.jpg',
            }, {
               songId: 1860234945,
               songName: "深海",
               songAuthor: "华北浪革",
               songPicUrl: "http://p3.music.126.net/rDC1vd4RnngyLPmbjeffPg==/109951167261752746.jpg",
            }, {
               songId: 4226232,
               songName: "Don't Look Back In Anger",
               songAuthor: "Oasis",
               songPicUrl: "http://p4.music.126.net/zMp-QJjuwZCAeuJy4ks5IQ==/18804947371841051.jpg",
            }, {
               songId: 1868553,
               songName: "Bohemian Rhapsody",
               songAuthor: "Queen",
               songPicUrl: "http://p3.music.126.net/F8R535oP-V4UOa0O2n1Y9Q==/798245441818276.jpg",
            }
         ];
         let elements = result;
         albumSongsInfo.length = 0;
         elements.forEach((element) => {
            albumSongsInfo.push({
               songId: element.songId,
               songName: element.songName,
               songAuthor: element.songAuthor,
               songPicUrl: element.songPicUrl,
            })
         })
         songsList.innerHTML = ""
         modifyPlayList(albumSongsInfo, 1);
         update();
      }

      let modifyPlayList = (data, albumData) => {
         data.forEach(element => {
            songsList.innerHTML += `
            <li data-song-id="${element.songId}" class="musicPlayListLi">
                <img src="${element.songPicUrl}?param=100y100">
                <div class="songInfo">
                   <p class="songName">${element.songName}</p> 
                   <p class="songAuthor">${element.songAuthor}</p>
                </div>
            </li>`
         });
         console.log(albumData)

         /// TODO 更改歌单介绍 TODO 调了接口再说
      }

   }
})(window)